/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.core.inheritance;

import static java.lang.Math.round;





/**
 *
 * @author sunil
 */
public class Math extends Subject{
    
    public static void main(String[] args) {
        Subject s1 = new Math();
        Subject s2 = new Subject();
        //System.out.println( s1.equals(s2));
       
        int i = 120;
        Integer j = 120;

        System.out.println("============> " + (j.intValue()==j));
        System.out.println("============> " + j.equals(i));
         
    }
    
    public static void change(Test t){
        t = new Test(20000);
        System.out.println("1 -------------> " + t.i);
    }
}

class Test{
    int i = 5;
    public Test(int newValue) {
        i = newValue;
    }
    
    
}